public class Computer {
    String brand;
    int cpuHz;
    Computer(String brand, int cpuHz) {
        this.brand = brand;
        this.cpuHz = cpuHz;
    }
    public String toString() {
        return "品牌: " + brand + ", CPU频率: " + cpuHz + "GHz";
    }
}
